package com.example.demovote.mapper;

import com.example.demovote.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 投票系统-用户表-4 Mapper 接口
 * </p>
 *
 * @author ly
 * @since 2024-03-18
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from tp_user where uname=#{name} and pwd=#{pwd}")
    public User selectForLogin(@Param("name") String name, @Param("pwd")String pwd);

}
